PgTabArray

A PangoTabArray contains an array of tab stops.

PangoTabArray can be used to set tab stops in a PangoLayout. Each tab stop has an alignment, a position, and optionally a character to use as decimal point.

Constructors

this
this(PangoTabArray* pangoTabArray, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(int initialSize, bool positionsInPixels)

Creates an array of @initial_size tab stops.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

copy
PgTabArray copy()

Copies a PangoTabArray.

free
void free()

Frees a tab array and associated resources.

getDecimalPoint
dchar getDecimalPoint(int tabIndex)

Gets the Unicode character to use as decimal point.

getPgTabArrayStruct
PangoTabArray* getPgTabArrayStruct(bool transferOwnership)

Get the main Gtk struct

getPositionsInPixels
bool getPositionsInPixels()

Returns %TRUE if the tab positions are in pixels, %FALSE if they are in Pango units.

getSize
int getSize()

Gets the number of tab stops in @tab_array.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTab
void getTab(int tabIndex, PangoTabAlign alignment, int location)

Gets the alignment and position of a tab stop.

getTabs
void getTabs(PangoTabAlign* alignments, int[] locations)

If non-%NULL, @alignments and @locations are filled with allocated arrays.

resize
void resize(int newSize)

Resizes a tab array.

setDecimalPoint
void setDecimalPoint(int tabIndex, dchar decimalPoint)

Sets the Unicode character to use as decimal point.

setPositionsInPixels
void setPositionsInPixels(bool positionsInPixels)

Sets whether positions in this array are specified in pixels.

setTab
void setTab(int tabIndex, PangoTabAlign alignment, int location)

Sets the alignment and location of a tab stop.

sort
void sort()

Utility function to ensure that the tab stops are in increasing order.

toString
string toString()

Serializes a PangoTabArray to a string.

Static functions

fromString
PgTabArray fromString(string text)

Deserializes a PangoTabArray from a string.

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
pangoTabArray
PangoTabArray* pangoTabArray;

the main Gtk struct

Meta